#ifndef CONTACTLOADTHREAD_H
#define CONTACTLOADTHREAD_H

#include <QThread>
#include <QContact>
#include <QContactManager>
#include <QString>

class DBRecord;

QTM_USE_NAMESPACE

class ContactLoadThread : public QThread
{
    Q_OBJECT
public:
	explicit ContactLoadThread( QObject * parent = 0 );
	~ContactLoadThread();
	void run();
	const QContact * contact() const { return m_contact; }
	const DBRecord * dbRecord() const { return m_record; }
	void setDbRecord( const DBRecord * rec );

private:
	static QContactManager * m_manager;
	QContact * m_contact;
	const DBRecord * m_record;
};

#endif // CONTACTLOADTHREAD_H
